import request from '@/utils/request'

/**
 * 获取访问日志列表
 */
export function listSysAccessLogApi(params?: any) {
    return request({
        url: '/sys/sysAccessLog/list',
        method: 'get',
        params
    })
}

/**
 * 获取访问日志详情
 */
export function detailSysAccessLogApi(id: any) {
    return request({
        url: '/sys/sysAccessLog/' + id,
        method: 'get'
    })
}

/**
 * 添加访问日志
 */
export function addSysAccessLogApi(data: any) {
    return request({
        url: '/sys/sysAccessLog/add',
        method: 'post',
        data
    })
}

/**
 * 修改访问日志
 */
export function updateSysAccessLogApi(data: any) {
    return request({
        url: `/sys/sysAccessLog/update`,
        method: 'put',
        data
    })
}


/**
 * 删除访问日志
 */
export function deleteSysAccessLogApi(ids: number[] | number) {
    return request({
        url: `/sys/sysAccessLog/delete/` + ids,
        method: 'delete'
    })
}


